package com.xjoyt.pay.master.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.master.dao.DistributorChannelRepositoryCustom;
import com.xjoyt.pay.master.po.DistributorChannel;
import com.xjoyt.pay.repository.Repository;

public interface DistributorChannelRepository
		extends Repository<DistributorChannel>, DistributorChannelRepositoryCustom {
	@Query(" select a from DistributorChannel a where a.distributor.id = ?1 and a.channel.id = ?2 ")
	List<DistributorChannel> findAllByDistributorIdAndChannelId(String distributorId, String channelId);
}
